from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
from room_booking.Booking.views import *
admin.autodiscover()
from django.contrib import databrowse


urlpatterns = patterns('',
    
    (r'^$', main_page),
    (r'^home_page/$', home_page),
    (r'^booking/$', inputs_booking),
    (r'^booking_times/$',booking_times),
    (r'^booking_success/$',booking_success),
    (r'^booking_history/$',booking_history),
    (r'^user_register/$', user_register),
    ('^user_forgot_pass/$', user_forgot_pass),
    ('^user_get_pass/$', user_get_pass),
    ('^user_booking/$', user_booking),
    ('^user_profile/$', user_profile),
    ('^log_out/$', logout),
    ('^report_error/$', report_user),
    (r'^admin_login/$', admin_login),
    ('^change_profile/$',change_profile),
    ('^admin_forgot_pass/$', admin_forgot_pass),
    ('^admin_get_pass/$', admin_get_pass),
    (r'^databrowse/(.*)', databrowse.site.root),
    ('^report/$', show_report),
    ('^modify_com/$', modify_report_fromAdmin),
    ('^histogram_error/$', draw_histogramError),
    ('^histogram_comUse/$',draw_hisComUse),
    (r'^change_password/$', change_password),
    #(r'^admin_register/$', 'admin_register'),
    # Examples:
    # url(r'^$', 'google_code.views.home', name='home'),
    # url(r'^google_code/', include('google_code.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
